<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!doctype html>
<html class="no-js">
<head>
<title>留言板</title>
<%@ include file="../mobile_inc.jsp"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<link href="/css/login.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/ext/js/ext-all.js"></script>
<script type="text/javascript" src="/jquery-easyui-1.4.5/jquery.min.js"></script>
<script type="text/javascript" src="/jquery-easyui-1.4.5/jquery.cookie.js"></script>
<script type="text/javascript" src="/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/jquery-easyui-1.4.5/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/js/commom.js"></script>
<script type="text/javascript">
//返回上一页	
function back() {
	history.back()
}
function Register() {
	$('#formModule').form('submit', {
		url : '${ctx }/manage/feedBack/addSave',
		dataType : 'json',
		success : function(result) {
			var json = $.parseJSON(result);
			if (json.success == 0) {
				alert("提交成功!");
				window.location.href = "${ctx }/manage/feedBack/add";
			} else {
				alert("fail！");
				//window.location.href = "${ctx }/manage";
			} 
		}
	});
}
</script>
</head>
<body style="background:#F0FFF0;">
<!-- 上部 -->
	<header data-am-widget="header"
		class="am-header am-header-default joan-head" style="background: #FFB6C1;">
		<div class="am-header-left am-header-nav">
			<a href="#" onclick="back();" target="_self" class=""> <i
				class="am-icon-mail-reply"></i>
			</a>
		</div>

		<h1 class="am-header-title">
			<a href="#title-link" class=""> 留言板</a>
		</h1>

		<div class="am-header-right am-header-nav">
			<a href="${ctx }/mobile/" target="_self" class=""> <i
				class="am-header-icon am-icon-home"></i>
			</a>
		</div>
	</header>
	<div style="padding: 1px" >
		<form id="formModule" name="formModule" method="post">
			<table border="0">
				<tr height="0">
					<td><input type="hidden" value="${id }" name="id"></input></td>
				</tr>
				<tr height="60">
					<td>内&nbsp;&nbsp;&nbsp;&nbsp;容：</td>
					<td><textarea id="content" maxlength="50" 
						class="easyui-validatebox textbox" type="text"
						name="content" 
						style="width: 180px;height: 1240px"></textarea></td>
				</tr>
				<br>
				<br>
				<tr height="60">
					<td>手机号：</td>
					<td><input id="phone" maxlength="50" 
						class="easyui-validatebox textbox" type="text"
						name="phone" 
						onkeyup="value=value.replace(/[^1234567890-]+/g,'')"
						style="width: 180px;height: 30px"></input></td>
				</tr>
			</table>
			<div class="login-btn">
				<button class="submit" onclick="Register()" >&nbsp;提&nbsp;交&nbsp;</button>
		</div>
		</form>
		
	</div>
	<!--底部 -->
	${bottom}
</body>
</html>
